package com.banciyuan.wallpaper.bean;

import android.os.Parcel;
import android.os.Parcelable;

/**
 * Created by squall on 2016/8/2.
 */
public class Item implements Parcelable {
    private String uid;
    private String uname;
    private String img_src;
    private String avatar;
    private String type;
    private String count;
    private String content;
    private String time;

    public String getUid() {
        return uid;
    }

    public String getUname() {
        return uname;
    }

    public String getImg_src() {
        return img_src;
    }

    public String getAvatar() {
        return avatar;
    }

    public String getType() {
        return type;
    }

    public String getCount() {
        return count;
    }

    public String getContent() {
        return content;
    }

    public String getTime() {
        return time;
    }

    public void setUid(String uid) {
        this.uid = uid;
    }

    public void setUname(String uname) {
        this.uname = uname;
    }

    public void setImg_src(String img_src) {
        this.img_src = img_src;
    }

    public void setAvatar(String avatar) {
        this.avatar = avatar;
    }

    public void setType(String type) {
        this.type = type;
    }

    public void setCount(String count) {
        this.count = count;
    }

    public void setContent(String content) {
        this.content = content;
    }

    public void setTime(String time) {
        this.time = time;
    }

    protected Item(Parcel in) {
        uid = in.readString();
        uname = in.readString();
        img_src = in.readString();
        avatar = in.readString();
        type = in.readString();
        count = in.readString();
        content = in.readString();
        time = in.readString();
    }

    public static final Creator<Item> CREATOR = new Creator<Item>() {
        @Override
        public Item createFromParcel(Parcel in) {
            return new Item(in);
        }

        @Override
        public Item[] newArray(int size) {
            return new Item[size];
        }
    };

    @Override
    public int describeContents() {
        return 0;
    }

    @Override
    public void writeToParcel(Parcel dest, int flags) {
        dest.writeString(uid);
        dest.writeString(uname);
        dest.writeString(img_src);
        dest.writeString(avatar);
        dest.writeString(type);
        dest.writeString(count);
        dest.writeString(content);
        dest.writeString(time);
    }

    @Override
    public String toString() {
        return "Item{" +
                "uid='" + uid + '\'' +
                ", uname='" + uname + '\'' +
                ", img_src='" + img_src + '\'' +
                ", avatar='" + avatar + '\'' +
                ", type='" + type + '\'' +
                ", count='" + count + '\'' +
                ", content='" + content + '\'' +
                ", time='" + time + '\'' +
                '}';
    }
}
